﻿//
//  Windows_libc
//
//  Created by  cc_team(陈旭，陈曦) qq:511272827.
//  Copyright 2011 cc_team. All rights reserved.
//
#ifndef CC_LIMITS_H
#define CC_LIMITS_H

// bits of type
#define CHAR_BITS			8

// max and min value of each type
#ifndef CHAR_MIN
#define CHAR_MIN			-128
#endif
#ifndef CHAR_MAX
#define CHAR_MAX			127
#endif

#define SHORT_MIN			-32768
#define SHORT_MAX			32767
#define LONG_MIN			0x80000000
#define LONG_MAX			0x7FFFFFFF

#define INT_MIN				LONG_MIN
#define INT_MAX				LONG_MAX

#define SHRT_MIN			SHORT_MIN
#define SHRT_MAX			SHORT_MAX




#ifdef __cplusplus
extern "C" {
#endif



#ifdef __cplusplus
}		// extern "C"
#endif

#endif